package com.hjm.project.CkPosReturn.CkPosReturn.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hjm.project.CkPosReturn.CkPosReturn.mapper.CkPosReturnMapper;
import com.hjm.project.CkPosReturn.CkPosReturn.domain.CkPosReturn;
import com.hjm.project.CkPosReturn.CkPosReturn.service.ICkPosReturnService;
import com.hjm.common.utils.text.Convert;

/**
 * 终端达标返现奖励Service业务层处理
 * 
 * @author LOVE
 * @date 2020-11-27
 */
@Service
public class CkPosReturnServiceImpl implements ICkPosReturnService 
{
    @Autowired
    private CkPosReturnMapper ckPosReturnMapper;

    /**
     * 查询终端达标返现奖励
     * 
     * @param id 终端达标返现奖励ID
     * @return 终端达标返现奖励
     */
    @Override
    public CkPosReturn selectCkPosReturnById(Long id)
    {
        return ckPosReturnMapper.selectCkPosReturnById(id);
    }

    /**
     * 查询终端达标返现奖励列表
     * 
     * @param ckPosReturn 终端达标返现奖励
     * @return 终端达标返现奖励
     */
    @Override
    public List<CkPosReturn> selectCkPosReturnList(CkPosReturn ckPosReturn)
    {
        return ckPosReturnMapper.selectCkPosReturnList(ckPosReturn);
    }

    /**
     * 新增终端达标返现奖励
     * 
     * @param ckPosReturn 终端达标返现奖励
     * @return 结果
     */
    @Override
    public int insertCkPosReturn(CkPosReturn ckPosReturn)
    {
        return ckPosReturnMapper.insertCkPosReturn(ckPosReturn);
    }

    /**
     * 修改终端达标返现奖励
     * 
     * @param ckPosReturn 终端达标返现奖励
     * @return 结果
     */
    @Override
    public int updateCkPosReturn(CkPosReturn ckPosReturn)
    {
        return ckPosReturnMapper.updateCkPosReturn(ckPosReturn);
    }

    /**
     * 删除终端达标返现奖励对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteCkPosReturnByIds(String ids)
    {
        return ckPosReturnMapper.deleteCkPosReturnByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除终端达标返现奖励信息
     * 
     * @param id 终端达标返现奖励ID
     * @return 结果
     */
    @Override
    public int deleteCkPosReturnById(Long id)
    {
        return ckPosReturnMapper.deleteCkPosReturnById(id);
    }
}
